package com.xing.binbackend.http;

import com.xing.binbackend.http.webclient.WebClientStrategy;
import com.xing.binbackend.pattern.responsibility.ecommerce.pay.User;

public class Client {
    public static void main(String[] args) {
        HttpClientStrategy clientStrategy = new WebClientStrategy();

        RestfulParameters params = new RestfulParameters();
        params.addHeader("Authorization", "Bearer token");
        params.addParam("userId", "123");

        RestfulResponse<User> response = clientStrategy.get("https://api.example.com/users/123",
                params, User.class);
        System.out.println(response.getData());
    }
}
